<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/includefile.jsp"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- Theme style -->
<link href="${basePath}/plugins/timepicker/bootstrap-timepicker.min.css" rel="stylesheet"/>
<link href="${basePath}/plugins/datatables/dataTables.bootstrap.css" rel="stylesheet" type="text/css" />
<script src="${basePath}/plugins/timepicker/bootstrap-timepicker.min.js" type="text/javascript"></script>
<script src="${basePath}/plugins/datatables/jquery.dataTables.js" type="text/javascript"></script>
<script src="${basePath}/plugins/datatables/dataTables.bootstrap.js" type="text/javascript"></script>
<script src="${basePath}/js/world.js" type="text/javascript"></script>
<style>
body{
font-family:"Hiragino Sans GB","Microsoft YaHei","微软雅黑",tahoma,arial,simhei,"黑体";
}
</style>
<script>
$(document).ready(function(){
	$('#example1').dataTable({
		"oLanguage": {
			"sSearch": "过滤:",
			"sLengthMenu": "每页显示 _MENU_ 条记录", 
			"sZeroRecords": "没有记录!",
			"sInfo": "显示第  _START_ 条到第  _END_ 条记录,一共  _TOTAL_ 条记录", 
            "sInfoEmpty": "显示0条记录", 
            "oPaginate": { 
                 "sPrevious": " 上一页 ", 
                 "sNext":     " 下一页 ", 
            } 
		}
	});
	 if('${check}'!=''&&'${check}'==0){
	     $('#saveTip :first-child').text('失败提醒！');
	     $('#saveTip').removeClass('callout-success').addClass('callout-danger');
	     $('#saveTip').slideDown(1000);
	     setTimeout("$('#saveTip').slideUp(2000);",5000)
	    }else if('${check}'!=''&&'${check}'==1){
	     $('#saveTip :first-child').text('成功提醒！');
	     $('#saveTip').removeClass('callout-danger').addClass('callout-success');
	     $('#saveTip').slideDown(1000);
	     setTimeout("$('#saveTip').slideUp(2000);",5000)
	    }
});
</script>
<title>单文件上传</title>
</head>
<body class="skin-blue">

<div class="wrapper">

 <header class="main-header">
 <s:action name="main!navbar" executeResult="true"></s:action>
 </header>
 <aside class="main-sidebar">
   <s:action name="main!menu" executeResult="true"></s:action>
 </aside>


<div class="content-wrapper">
<!-- 页面标题 start -->
 <section class="content-header">
   <h1>开销管理<small>开销查询</small></h1>
   <ol class="breadcrumb">
      <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
      <li><a href="#">开销管理</a></li>
      <li class="active">开销查询</li>
   </ol>
 </section>
 <!-- 页面标题 end -->
 <!-- 页面内容 start -->
 <section class="content">
   <div class='row'>
     <div class="col-sm-12">
       <div class="callout callout-success" id="saveTip"  style="display:none;">
         <h4>成功提醒！</h4>
         <p><s:if test="tipInfo!=null">${tipInfo}</s:if></p>
       </div>
     </div>
     <div class='col-md-12'>
       <div class="box">
         <div class="box-header">
           <h3 class="box-title">消费信息查询</h3>
         </div>
         <div class="box-body">
           <form>
           <table class="table table-bordered table-striped table-hover">
             <tr>
               <td></td>
             </tr>
           </table>
           </form>
           <table id="example1" class="table table-bordered table-striped table-hover">
             <thead>
               <tr class="info">
                 <th>行号</th>
                 <th>日期</th>
                 <th>时间</th>
                 <th>类型</th>
                 <th>名称</th>
                 <th>明细</th>
                 <th>金额</th>
               </tr>
             </thead>
             <tbody>
               <s:iterator value="costLiveList" var="key" status="var">
               <tr>
                 <td>${var.count}</td>
                 <td><s:date name="costDate" format="yyyy-MM-dd"></s:date></td>
                 <td>${key.costTime}</td>
                 <td>${key.typeName}</td>
                 <td>${key.name}</td>
                 <td>${key.remark}</td>
                 <td>${key.price}</td>
               </tr>
               </s:iterator>
             </tbody>
           </table>
         </div>
       </div>
     </div>
   </div>
 </section>
 <!-- 页面内容 end -->
 </div>
 </div>
</body>
</html>
		